from datetime import datetime

BIND_PHONE_NOT = 0
BIND_PHONE_DONE = 1

VISITOR_START = 5000000

PASSWORD_INIT = 'password_not_empty'

CREATE_VISITOR_LOCK = "VISITOR_CREATE_LOCK"
CREATE_VISITOR_LOCK_TIMEOUT = 30

VISITOR_INFO_TRANSFER_LOCK = "VISITOR_INFO_TRANSFER_LOCK"
VISITOR_LAST_ID = "VISITOR_LAST_ID"

VISITOR_DELETE = 500

MIN_PASSWORD_LENGTH = 6
MAX_PASSWORD_LENGTH = 16

MIN_USERNAME_LENGTH = 1
MAX_USERNAME_LENGTH = 16

FEEDBACK_DESCRIPTION_LENGTH = 200

MAX_SCREENSHOT_LENGTH = 4

IS_NONE = None

RESET_PWD_TIMEOUT = 60 * 60 * 24
RESET_PWD_MAXIMUM_VALUE_OF_THE_LIMIT = 5
PWD_LOGIN_TIMEOUT = 60 * 60 * 24
PWD_LOGIN_MAXIMUM_VALUE_OF_THE_LIMIT = 6

default_birthday_string = "2023-10-01 12:17:00"
default_birthday = datetime.strptime(default_birthday_string, "%Y-%m-%d %H:%M:%S")

default_gender = 1
